// Car/ Stage View

(function( window, undefined ) {

var Stage = Class({
	name: "Stage",
	parent: "View",
	constructor: function() {
		var _$container;
		
	
		return {
			__construct: function(  ) {
				
			},
			
			setContainer: function( $container ) {
				console.log( this, "setContainer" );
				
				_$container = $container;
				_$container.css( {"border":"5px solid #CCCCCC"} );
			},
			
			add: function( view ) {	
				console.log( this, "add" );
				
				_$container.append( view.object() );
			},
			
			remove: function( view ) {
				console.log( this, "remove" );
				
				view.object().remove();
				
				//_$container.remove( view.object() );
			}
		};
	}
});

Class.View.Stage = Stage;

})(window);